package cn.netjava.personblogaction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.netjava.actioninterface.Action;
import cn.netjava.pojo.User;

public class WriteReplayMsgAction implements Action{

	public String excute(HttpServletRequest request,
			HttpServletResponse response) {
		/*get the user which has logined*/
		HttpSession session =request.getSession();
		User user =(User)session.getAttribute("loginUser");
		
		if(null!=user.getUserName()){
			
			String replayMsgContent =request.getParameter("replaymsgcontent");
			System.out.println("replayMsgContent:"+replayMsgContent);
			
			return "JSP/personblogjsp/personreplaymsg.jsp";
		}
		return null;
	}

}
